﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CANO.Data.DAOs;

namespace CANO.WebSite.Inbox
{
	public partial class Inbox : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			Session["currentModule"] = "Inbox";
			int CurrentRolID = Convert.ToInt32(Session["CurrentRolID"]);
			int CurrentUserID = Convert.ToInt32(Session["CurrentUserID"]);

			rptBandejaEntrada.DataSource = new NotificationDAO().GetAllByUser(CurrentUserID);
			rptBandejaEntrada.DataBind();

			if (rptBandejaEntrada.Items.Count <= 0)
				pnlSinInbox.Visible = true;
		}
	}
}